const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  // publicPath:'/',//部署应用包时的基本 URL
  publicPath:process.env.NODE_ENV=='production'?'./':'/',//部署应用包时的基本 URL
  // outputDir:'dist',
  // assetsDir:'static',
  // indexPath:'index.html',

  lintOnSave:false,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:7788',
        ws: true,
        changeOrigin: true,
        pathRewrite:{
          '^/api':''
        }
      }
    }
  },
});
